<#if pg??>${pg.countHtml!}</#if>
<table class="list">
  <tr>
    <th width="4%">序号</th>
    <th width="7%">门店名称</th>
    <th width="8%">会员卡号</th>
    <th width="8%">会员姓名</th>
    <th width="9%">电话</th>
    <th width="12%">标题</th>
    <th width="6%">分类</th>
    <th width="7%">紧急程度</th>
    <th width="8%">处理状态</th>
    <th width="8%">提交时间</th>
    <th width="8%">更新时间</th>
    <th width="7%">操作人</th>
    <th>处理</th>
  </tr>
  <#if list??><#list list as c>
  <tr<#if c_index%2==1> class="line2"<#else> class="line1"</#if>>
    <td>${c.complainId!}</td>
    <td><@value type="shopName" key="${c.shopCode!}"/></td>
    <td>${c.cardCode!}</td>
    <td class="member"><a href="javascript:mbinfo('${c.memberCode!}');">${c.memberName!}</a></td>
    <td>${c.mobile!}</td>
    <td class="left">${c.title!}</td>
    <td><@value type="complaintType" key="${c.type!}"/></td>
    <td><@value type="complaintPriority" key="${c.priority!}"/></td>
    <td><@value type="complaintStatus" key="${c.status!}"/></td>
    <td>${c.complainTime!}</td>
    <td>${c.updateTime!}</td>
    <td><@value type="userName" key="${c.createUser!}"/></td>
    <td class="oper">
      <#if c.status=1 && canEdit?? && c.createUser=sysUser.userInfo.userCode><a class="edit" href="javascript:open('edit?id=${c.complainId}');">修改</a></#if>
      <#if c.status=2 && canAudit2??><a class="edit" href="javascript:open('audit2?id=${c.complainId}');">审批</a></#if>
      <#if c.status=3 && canAudit3??><a class="edit" href="javascript:open('audit3?id=${c.complainId}');">审批</a></#if>
      <#if c.status=4 && canAudit4?? && sysUser.userInfo.groupCode??
        && (sysUser.userInfo.groupCode='Admins' || sysUser.userInfo.groupCode='G130'
          || (c.type='1' && sysUser.userInfo.groupCode='G111')
          || (c.type='2' && sysUser.userInfo.groupCode='G121')
          || (c.type='3' && sysUser.userInfo.groupCode='G102')
          || c.type='4'
          || (c.type='5' && c.status2!=1 && sysUser.userInfo.groupCode='G111')
          || (c.type='5' && c.status2!=2 && sysUser.userInfo.groupCode='G121'))><a class="edit" href="javascript:open('audit4?id=${c.complainId}');">审批</a></#if>
      <#if c.status=5 && canAudit5??><a class="edit" href="javascript:open('audit5?id=${c.complainId}');">审批</a></#if>
      <#if c.status=6 && canAudit6??><a class="edit" href="javascript:open('audit6?id=${c.complainId}');">审批</a></#if>
      <#if c.status=7 && canAudit7??><a class="edit" href="javascript:open('audit7?id=${c.complainId}');">审批</a></#if>
      <#if c.status=8 && canAudit8?? && sysUser.userInfo.groupCode??
        && (sysUser.userInfo.groupCode='Admins' || sysUser.userInfo.groupCode='G130'
          || (c.type='1' && sysUser.userInfo.groupCode='G110')
          || (c.type='2' && sysUser.userInfo.groupCode='G120')
          || (c.type='3' && sysUser.userInfo.groupCode='G101')
          || c.type='4'
          || (c.type='5' && c.status2!=1 && sysUser.userInfo.groupCode='G110')
          || (c.type='5' && c.status2!=2 && sysUser.userInfo.groupCode='G120'))><a class="edit" href="javascript:open('audit8?id=${c.complainId}');">审批</a></#if>
      <#if c.status=9 && canProc??><a class="edit" href="javascript:open('proc?id=${c.complainId}');">处理</a></#if>
      <#if c.status=12 && canAdrec??><a class="edit" href="javascript:open('adrec?id=${c.complainId}');">收款信息</a></#if>
      <#if c.status=13 && canAudit13??><a class="edit" href="javascript:open('audit13?id=${c.complainId}');">审批</a></#if>
    </td>
  </tr>
  </#list></#if>
</table>
<#if pg??>${pg.pageHtml!}</#if>
